package com.wali.modules.system.enums;


import com.wali.common.ccp.exception.ICcpErrorCode;

/**
 * @ClassName: com.kpmg.common.enums.system
 * @Description: 用户错误码枚举
 * @author: walixu
 * @date: 25/07/2018 11:01 上午
 * <p>
 * ${tags}
 */
public enum UserCodeEnum implements ICcpErrorCode {

    USERNAME_CANNOT_EMPTY(10001, "用户名不能为空"),

    PASSWORD_CANNOT_EMPTY(10002, "密码不能为空"),

    LOGIN_CODE_PASSWORD_ERROR(10003, "用户名或密码错误"),

    ERROR_OLD_PASSWORD(10004, "旧密码错误"),

    ERROR_CONFIRM_PASSWORD(10005, "确认密码不一致"),

    ERROR_USERNAME_EXIST(10006, "用户名已经存在"),

    ;

    // 错误码
    private int code;

    private String message;

    UserCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
